package com.douqu.game.main.server.entity;

import com.douqu.game.core.controller.PlayerController;
import com.douqu.game.core.factory.DataFactory;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2018-07-24 18:05
 */
public class BattleCachePlayer {

    /**
     * 开始战斗的时间
     */
    private long startBattleTime;

    private PlayerController playerController;

    public BattleCachePlayer(long startBattleTime, PlayerController playerController)
    {
        this.startBattleTime = startBattleTime;
        this.playerController = playerController;
    }


    public boolean isOverdue()
    {
        return DataFactory.currentTime - startBattleTime >= 300000;
    }

    public long getStartBattleTime() {
        return startBattleTime;
    }

    public void setStartBattleTime(long startBattleTime) {
        this.startBattleTime = startBattleTime;
    }

    public PlayerController getPlayerController() {
        return playerController;
    }

    public void setPlayerController(PlayerController playerController) {
        this.playerController = playerController;
    }
}
